    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', sans-serif;
      background: hsl(0, 0%, 100%);
    }

    nav {
      position: sticky;
      top: 10px;
      z-index: 1000;
      max-width: 1520px;
      margin: 30px auto;
      padding: 1.2rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #ffffff;
      border-radius: 50px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
      border: 1px solid #a1a1a1;
    }

    .logo {
      font-size: 1.7rem;
      font-weight: bold;
      color: #2c3e50;
    }

    .nav-center {
      display: flex;
      gap: 2rem;
    }

    .nav-center a {
      position: relative;
      text-decoration: none;
      color: #2c3e50;
      font-weight: 500;
      font-size: 15px;
      padding: 6px 0;
      transition: color 0.3s ease;
    }

    .nav-center a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0%;
      height: 2px;
      background-color: #4a74ff;
      transition: width 0.3s ease;
    }

    .nav-center a:hover::after {
      width: 100%;
    }

    /* ✅ Right Side Rounded Button */
    .nav-right a {
      text-decoration: none;
      background: #4a74ff;
      color: #fff;
      padding: 10px 22px;
      border-radius: 50px;
      font-weight: 500;
      font-size: 15px;
      box-shadow: 0 4px 12px rgba(74, 116, 255, 0.3);
      transition: all 0.3s ease;
    }

    .nav-right a:hover {
      background: #355de0;
      transform: translateY(-1px);
    }
        /* ─── Search Bar ───────────────────────────── */
    .search-box{
        position:relative;
        display:flex;
        align-items:center;
    }
    .search-box input{
      width:200px;
      max-width:60vw;
      padding:9px 40px 9px 16px;
      border:1px solid #bfc9ff;
      border-radius:50px;
      font-size:14px;
      transition:all .3s ease;
    }
    .search-box input::placeholder{
        color:#9aa2d4;
    }
    .search-box input:focus{
      outline:none;border-color:#4a74ff;
      box-shadow:0 0 0 3px rgba(74,116,255,.25);
    }
    /* search icon */
    .search-box::after{
      content:'🔍'; /* simple emoji icon */
      position:absolute;right:14px;pointer-events:none;
      font-size:16px;color:#6d7be9;
    }


    @media (max-width: 768px) {
      nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 25px;
      }

      .nav-center {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
      }

      .nav-right a {
        width: 100%;
        text-align: center;
      }
     .search-box input{width:100%;}

    }
/* --- Previous link --- */
    .back-link{
  position:absolute;
  top:140px;
  right:180px;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.95rem;
  color:#333;
  text-decoration:none;
  transition:transform .25s ease;
  
}
.back-link:hover{transform:translateX(4px)}
.back-link img{width:35px;height:35px;display:block}


        .box-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 32px;
      max-width: 1200px;
      margin: auto;
      margin-top: 90px;
      
    }

    .card1 {
      background: #fff;
      border-radius: 5px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: transform 0.3s ease;
      padding-bottom: 25px;

        transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
      animation: cardFade 0.6s ease forwards;

    }
        .card2{
      background: #fff;
      border-radius: 5px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: transform 0.3s ease;
      padding-bottom: 25px;

      transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
      animation: cardFade 0.6s ease forwards;


    }
    .card2 a{
      text-decoration: none;
    }
        .card3 {
      background: #fff;
      border-radius: 5px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: transform 0.3s ease;
      padding-bottom: 25px;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
      animation: cardFade 0.6s ease forwards;


    }
    .card1 a{
      text-decoration: none;
    }
    .card3 a{
            text-decoration: none;

    }
            .card4 {
      background: #fff;
      border-radius: 5px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: transform 0.3s ease;
      padding-bottom: 25px;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
      animation: cardFade 0.6s ease forwards;


    }
    .card4 a{
      text-decoration: none;
    }
    






    .card1 h3 {
      font-size: 1.25rem;
      font-weight: 600;
      padding-bottom: 20px;
      padding-top: 25px;
      text-align: center;
      color: #ffffff;
      text-decoration: none;
    }
    .card1 h3:hover {
        color: #ffffff;
        
        cursor: pointer;
        text-decoration: underline;

    }


        .card2 h3 {
      font-size: 1.25rem;
      font-weight: 600;
      padding-bottom: 20px;
      padding-top: 25px;
      text-align: center;
      color: #ffffff;
    }
     .card2 h3:hover {
     color: #ffffff;
    
    cursor: pointer;
    text-decoration: underline;


    }


        .card3 h3 {
      font-size: 1.25rem;
      font-weight: 600;
      padding-bottom: 20px;
      padding-top: 25px;
      text-align: center;
      color: #ffffff;
    }
        .card3 h3:hover {
        color: #ffffff;
    
        cursor: pointer;
        text-decoration: underline;


    }
            .card4 h3 {
      font-size: 1.25rem;
      font-weight: 600;
      padding-bottom: 20px;
      padding-top: 25px;
      text-align: center;
      color: #ffffff;
    }
        .card3 h3:hover {
        color: #ffffff;
    
        cursor: pointer;
        text-decoration: underline;


    }

.card .img-wrap img {
 width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
  border-color: #ffffff66;
}

.card:hover img {
  transform: scale(1.1);
}
.card h3:hover {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
  text-decoration: underline;
}

.card h3 .icon {
  font-size: 18px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.card h3:hover .icon {
  transform: rotate(8deg) scale(1.2);
}


    /* Gradient Backgrounds */
.card1 {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.card2 {
  background: linear-gradient(135deg, #f97316, #fb923c);
}
.card3 {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.card4 {
  background: linear-gradient(135deg, #9333ea, #a855f7);
}


 .img-wrap {
  height:150px;             
  display:flex;
  justify-content:center;   
  align-items:center;       
  overflow:hidden;          
    }

    .img-wrap img {
.img-wrap img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s ease, filter 0.6s ease;
  transform-origin: center;

}
    }


    @media (max-width: 480px) {
      body { padding: 30px 16px; }
      .card h3 { font-size: 1.1rem; }
    }

    /* Entrance Animations */
@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card1:nth-child(1) { animation-delay: 0.1s; }
.card2:nth-child(2) { animation-delay: 0.2s; }
.card3:nth-child(3) { animation-delay: 0.3s; }
.card4:nth-child(4) { animation-delay: 0.4s; }


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive tweak */
@media (max-width: 768px) {
  .box-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}


